{% extends "base_no_index.html" %}
{% block title %}{{ orzing.title|escape }} - {{ application_name }}{% endblock %}
{% block head %}
  <script type="text/javascript">
  //<![CDATA[
  //]]>
  </script>
{% endblock %}

{% block body %}
	<div id="orzing">
		<h1 class="title">{{orzing.title|escape }}</h1>
		<div class="content"> {{orzing.content|escape}}</div>
	</div>
	<div id="vote">
	<div class="like"><a href="/vote?id={{ orzing.key|stringformat:"s"|urlencode }}&v=1">Like</a> <span class="vote like">[{{orzing.count_like}}]</span></div>
	<div class="dislike"><a href="/vote?id={{ orzing.key|stringformat:"s"|urlencode }}&v=0">Dislike</a><span class="vote dislike">[{{orzing.count_dislike}}]</span></div>
	</div>
	<div id="comments">
	<ul class="commentlist">
	{% for comment in comments %}
	<li>
		<div class="comment"> 
			<div class="title">{{ comment.title }}</div>
			<div class="content">{{ comment.content }}</div>
			<div class="meta">
				by <span class="author">{{comment.author.nickname}}</span> at <span class="date">{{ comment.created }}</span>
			</div>
		</div>
	</li>
	{% endfor %}
	</ul>
	</div>
	{% if user %}
		{% include "commentform.html" %}
	{% endif %}
{% endblock %}
{% block footer %}
{% endblock %}